package com.medical.sys.mapper;

import com.medical.sys.model.Resource;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface ResourceMapper {
    int deleteByPrimaryKey(String id);

    int insert(Resource record);

    Resource selectByPrimaryKey(String id);

    List<Resource> selectByParentId(String ParentId);

    List<Resource> selectByRoleId(String roleId);

    List<Resource> selectByRoleIds(List<String> roleIds);

    List<Resource> selectAll(Boolean administrator);

    int updateByPrimaryKey(Resource record);
}